package com.ysu.his.entity.prescription;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysu.his.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 处方明细实体类
 */
@Data
public class PrescriptionItem extends BaseEntity
{
    //唯一标识
    private Long id;

    //处方id
    private Long prescriptionId;

    //药品id
    private Long drugId;

    //药品名称
    private String drugName;

    //药品数量
    private Integer quantity;

    //药品单价
    private BigDecimal unitPrice;

    //金额
    private BigDecimal amount;

    //用法用量
    private String usageMethod;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
